package cn.dao.user;

import cn.entity.User;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Service;

import java.util.List;

public class UserMapperImpl extends SqlSessionDaoSupport implements UserMapper{

    @Override
    public List<User> selectList(User user) {
        return this.getSqlSession().selectList("cn.dao.user.UserMapper.selectList",user);
    }

    @Override
    public int add(User user) {
        return this.add(user);
    }

    @Override
    public int delete(String id) {
        return this.delete(id);
    }

    @Override
    public int update(User user) {
        return this.update(user);
    }
}
